package com.senney.spring_4x;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SpringConfiguration {

    @Conditional(MyCondition.class)
    @Bean
    public DemoService04 demoService04(){
        return new DemoService04();
    }
}
